#include <stdio.h>
#include <unistd.h>

int main()
{
    //int execl(const char *path, const char *arg, ...);
    //execl("/usr/bin/ls","ls", "-l", NULL);
    //execlp("./get", "get", "-l", NULL);
    //char* env[32] = {0};
    //env[0] = "MYHEHE=hehe";
    //env[1] = "61CLASS=class";
    //execle("./get","get", "-a", "-l", NULL, env);
    char* argv[3];
    argv[0] = "ls";
    argv[1] = "-l";
    argv[2] = NULL;
    char* env[32] = {0};
    env[0] = "MYHEHE=hehe";
    env[1] = "61CLASS=class";
    env[2] = NULL;
    execve("/usr/bin/ls", argv, env);
    
    //char* argv[3];
    //argv[0] = "ls";
    //argv[1] = "-l";
    //argv[2] = NULL;
    //execv("/usr/bin/ls", argv);
    perror("execlp");
    printf("hahaha\n");
    return 0;
}
